package com.niguang.work.api.vo;

import com.niguang.work.api.enums.ContentApplyFlagEnum;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class ApplyListVo {

    List<TitleVo> title = new ArrayList<>();

    private Map<String, Object> map = new HashMap<>();


    public ApplyListVo() {
    }

    public ApplyListVo(List<TitleVo> title, Map<String, Object> map) {
        this.title = title;
        this.map = map;
    }


    @Data
    public static class TitleVo {
        private Integer id;

        private String name;

        private Long value;

        public TitleVo(Integer id, Long value) {
            this.id = id;
            this.value = value;
            this.name = ContentApplyFlagEnum.getName(id);
        }

        public TitleVo() {
        }
    }
}
